/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.singleresponsibility.violation.impl;

import za.ac.cput.assignment2.singleresponsibility.violation.CustomerInterface;

/**
 *
 * @author yandiswa
 */
public class CustomerImpl implements CustomerInterface{
    private String name;
    private String accNo;
    private double accBalance;

    public CustomerImpl()
    {
       
    }

    public String getName(){
        return name;
    }
    public String getAccNo(){
        return accNo;
    }
    public double getBalance(){
        return accBalance;
    }

    public double payAndBuyOnAcc(double price, double cash) {  // method level violation of SRP
        return accBalance = (accBalance+cash)-( accBalance - price);
        
    }

    
}
